'''
Created on 02.11.2011

@author: alex
'''

class Directory:
    """"""
    def serialize(self, stream=None, string=None):
        pass
    def unserialize(self, stream=None):
        pass
    def send(self, inputStream, fileName):
        """writes content of inputStream to file named fileName"""
        pass
    def receive(self, outputStream, fileName):
        """reads file named fileName to outputStream"""
        pass
    def sha1(self, fileName):
        pass
    def delete(self, fileName):
        """deletes file named fileName"""
        pass
    def update(self, listener):
        """scan files and notify listener about changes"""
        pass


# listener interface
class Listener:
    def onCreate(self, fileName, timestamp):
        pass
    def onModify(self, fileName, timestamp): 
        pass
    def onDelete(self, fileName, timestamp):
        pass
